package demo4;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class Preson {
    @Autowired
    @Qualifier("winter")
//    private Shirt shirt;
    private Clothes clothes;


    @Override
    public String toString() {
        return "Preson{" +
                "shirt=" + clothes +
                '}';
    }
}
